package city.spring.modules.material.service;

import city.spring.modules.material.entity.MaterialreceiptMaterialExtEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：物资领用与物资关系表
 *
 * @author 谢金婷
 * @date 2020-12-17 11:48:32
 */
public interface MaterialreceiptMaterialExtService extends IService<MaterialreceiptMaterialExtEntity> {
    String CACHE_NAME = "materialreceipt_material_ext";

    /**
     * 业务处理：保存一个 <strong>物资领用与物资关系表</strong>
     *
     * @param entity 物资领用与物资关系表
     */
    void saveMaterialreceiptMaterialExt(MaterialreceiptMaterialExtEntity entity);

    /**
     * 业务处理：修改一个 <strong>物资领用与物资关系表</strong>
     *
     * @param entity 物资领用与物资关系表
     */
    void updateMaterialreceiptMaterialExt(MaterialreceiptMaterialExtEntity entity);

    /**
     * 业务处理：删除一个 <strong>物资领用与物资关系表</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteMaterialreceiptMaterialExt(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>物资领用与物资关系表</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteMaterialreceiptMaterialExt(List<String> primaryKeys);

    /**
     * 根据materialreceiptId查找关联的物资
     *
     * @param materialreceiptId
     * @return
     */
    List<MaterialreceiptMaterialExtEntity> getByMaterialreceiptId(String materialreceiptId);
}